using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository
{
       
    class   InstructionHeaderMap : ClassMap<InstructionHeader>
    {

        public InstructionHeaderMap()
            {
                Table("INSTRUCTION_HEADER");
                Id(x => x.HeaderID,"INSTRUCTION_HEADER_ID").GeneratedBy.Identity();

                Map(x => x.TO,"INSTRUCTION_TO");
 Map(x => x.Attention,"INSTRUCTION_ATTENTION");
 Map(x => x.Mail,"INSTRUCTION_MAIL");
 Map(x => x.CompanyName,"INSTRUCTION_COMPANY_NAME");
 Map(x => x.CompanyID,"INSTRUCTION_COMPANY_ID");
 Map(x => x.FinancialInstrumentName,"INSTRUCTION_FINANCIAL_INSTRUMENT_NAME");
 Map(x => x.FinancialInstrumentID,"INSTRUCTION_FINANCIAL_INSTRUMENT_ID");
 Map(x => x.CompanyTel,"INSTRUCTION_COMPANY_TEL");
 Map(x => x.CompanyFax,"INSTRUCTION_COMPANY_FAX");
 Map(x => x.CompanyMail,"INSTRUCTION_COMPANY_MAIL");
 Map(x => x.TradeDate,"INSTRUCTION_TRADE_DATE");
 Map(x => x.SettlementDate,"INSTRUCTION_SETTLEMENT_DATE");
 Map(x => x.CreateDate,"INSTRUCTION_CREATE_DATE");
 Map(x => x.CreateUser, "INSTRUCTION_CREATE_USER");
 Map(x => x.Status,"INSTRUCTION_STATUS");
             Map(x => x.AssetClassName,"INSTRUCTION_ASSET_CLASS_NAME");
             Map(x => x.AssetClassID, "INSTRUCTION_ASSET_CLASS_ID");
            

            }


    }

}